<?php
/**
 * 后台用户验类
 * @author yupoxiong<i@yufuping.com>
 */

namespace app\admin\validate;

class OtaUserValidate extends Validate
{
    protected $rule = [
        'account|账号'           => 'require|unique:ota_user',
        'password|密码'          => 'require',
    ];

    protected $scene = [
        'add'    => ['account', 'password'],
        'edit'   => ['account', 'password'],
    ];
}
